package edu.nf.test.demo02;

import io.github.classgraph.ClassGraph;
import io.github.classgraph.ClassInfoList;
import io.github.classgraph.ScanResult;

/**
 * @author CSY
 * @date 2025 - 04 - 16
 */
public class ScanUtils {
    public static ClassInfoList scan(String packageName){
        ClassGraph classGraph = new ClassGraph();

        ScanResult result = classGraph.acceptPackages(packageName).scan();

        return new ClassInfoList(result.getAllClasses());
    }
}
